package excel

import (
	"io"

	"github.com/xuri/excelize/v2"
)

type Document struct {
	file *excelize.File
}

// 写入文件流
func (doc *Document) Write(w io.Writer) error {
	return doc.file.Write(w)
}

// 关闭文件
func (doc *Document) Close() {
	doc.file.Close()
}
